package com.cn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 支付订单商品详情表
    */
@ApiModel(value="com-cn-pojo-OrdersDish")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "orders_dish")
public class OrdersDish {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="主键id")
    private Long id;


    @TableField(value = "order_id")
    @ApiModelProperty(value="订单id")
    private Long orderId;

    @TableField(value = "dish_id")
    @ApiModelProperty(value="菜品id")
    private Long dishId;

    /**
     * 菜品名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value="菜品名称")
    private String name;

    /**
     * 菜品图片
     */
    @TableField(value = "image")
    @ApiModelProperty(value="菜品图片")
    private String image;

    /**
     * 菜品价格
     */
    @TableField(value = "price")
    @ApiModelProperty(value="菜品价格")
    private String price;

    /**
     * 商品码
     */
    @TableField(value = "code")
    @ApiModelProperty(value="商品码")
    private String code;

    /**
     * 口味
     */
    @TableField(value = "flavor")
    @ApiModelProperty(value="口味")
    private String flavor;

    /**
     * 数量
     */
    @TableField(value = "copies")
    @ApiModelProperty(value="份数")
    private String copies;

    /**
     * 总计
     */
    @TableField(value = "amount")
    @ApiModelProperty(value="总计")
    private Integer amount;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_NAME = "name";

    public static final String COL_IMAGE = "image";

    public static final String COL_PRICE = "price";

    public static final String COL_CODE = "code";

    public static final String COL_FLAVOR = "flavor";

    public static final String COL_NUMBER = "number";

    public static final String COL_AMOUNT = "amount";
}